/* eslint-disable */
// @ts-ignore
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as API from './types';

/** 上传图片 POST /api/upload/image */
export async function imageUsingPost({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResultUploadImagesVo>('/api/upload/image', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 上传图片 POST /api/upload/image/car */
export async function imageCarUsingPost({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.AjaxResultobject>('/api/upload/image/car', {
    method: 'POST',
    ...(options || {}),
  });
}
